function yjxj(app_id)
	sys.toast("正在新机", 3000)
	local   DataPath = app.data_path(app_id)	
	app.close(app_id)
	mSleep(200)
	--os.execute('su mobile -c uicache')--清理系统缓存
	mSleep(200)
	if DataPath then
		os.execute("rm -rf "..DataPath.."/Documents/*")
		os.execute("rm -rf "..DataPath.."/Library/*")
		os.execute("rm -rf "..DataPath.."/*.plst")
		os.execute("rm -rf "..DataPath.."/tmp/*")	
		mSleep(1000)
	end
	mSleep(200)

	--mSleep(200)
	clear.all_keychain()
	--mSleep(200)
	clear.pasteboard()
	--mSleep(200)
	local old_idfavs = clear.idfav()
	local f = io.open("/var/mobile/Media/1ferver/res/old_idfavs.txt", "wb")
	if f then
		f:write(old_idfavs)
		f:close()
--		clear.caches() 
		-- 清理一下系统缓存
--		log(json.encode(old_idfavs))
--		sys.alert("备份成功")
--		idfas = json.decode(old_idfavs)
	
		local pattern = '%["LSVendorIdentifier"%]%s*=%s*"(.-)"'
		r = string.match(old_idfavs, pattern )
--		log(  string.match(old_idfavs, pattern ) )
		if r then
			log("返回idfa")
			log(r)
			sys.toast('新机完成', 2000)
			return r
		end

		sys.alert(json.encode(old_idfavs), 5000)
		log(old_idfavs)
--		log(idfas.LSAdvertiserIdentifier)
--		log(old_idfavs.LSAdvertiserIdentifier)
	else
		clear.idfav(old_idfavs) -- 无法备份的情况下立马恢复
--		clear.caches() -- 清理一下系统缓存
		sys.alert("备份失败")
	end
-- 从文件中恢复 idfav 信息
	--[[local f = io.open("/var/mobile/Media/1ferver/res/old_idfavs.txt", "rb")
	if f then
		local old_idfavs = f:read("*a")
		f:close()
		close_all_app() -- 关闭所有应用
		local current_idfavs = clear.idfav(old_idfavs)
		if current_idfavs then
			f = io.open("/var/mobile/Media/1ferver/res/current_idfavs.txt", "wb")
			f:write(current_idfavs) -- 将现有的 idfav 信息保存到另一个文件
			f:close()
			clear.caches() -- 清理一下系统缓存
			sys.alert("恢复 idfav 信息成功")
		else
			sys.alert("恢复 idfav 信息失败")
		end
	else
		sys.alert("文件打开失败")
		end]]
end
--yjxj(app_id)